import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import "./assets/js/axios"
import Blob from './excel/Blob.js'
import Export2Excel from './excel/Export2Excel.js'

import {
  Table,
  Button,
  Message,
  Modal,
} from 'view-design';
import 'view-design/dist/styles/iview.css';

Vue.component('Table', Table);
Vue.component('Button', Button);
Vue.component('Modal', Modal);
Vue.prototype.$Message = Message;
Vue.prototype.$Modal = Modal;

// axios.defaults.baseURL = "http://192.168.1.132:9000"; // 默认请求路径 - 模拟接口
axios.defaults.baseURL = "https://192.168.1.12"; // 默认请求路径 - 公司接口
axios.defaults.headers.common['Authorization'] = "4c629c68-e121-4128-a2db-b115e24fcc9e"; // 公司接口 需要带参
// axios.defaults.headers.common['Authorization'] = sessionStorage.getItem('token'); // 公司接口 需要带参
Vue.config.productionTip = false; // 生产模式

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')